/**
 * @Copyright FangYun Home
 */
package home.fangyun.pagerank.domain.importance;

import java.util.Arrays;

import home.fangyun.pagerank.domain.Vote;

/**
 * @author fangyuncn@163.com
 */
public class Thing implements Vote{
	private int from;
	private int[][] tos;
	private String description;

	public Thing(int from, int[][] tos, String d) {
		this.from = from;
		this.tos=tos;
		this.description = d;
	}

	@Override
	public int getFrom() {
		return from;
	}

	@Override
	public int[][] getToRatings() {
		return tos;
	}

	public String getDescription() {
		return this.description;
	}

	@Override
	public String toString() {
		return "Thing [from=" + from + ", tos=" + Arrays.toString(tos) + ", description=" + description + "]";
	}
}
